package com.zgm.ch04._3_1;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

public class LoggingBeanDemo {

	public static void main(String[] args){
		BeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("com/zgm/ch04/_3_1/_3_1-context.xml"));
		LoggingBean lb = (LoggingBean) beanFactory.getBean("loggingBean");
		
		lb.run();
	}
}
